package Logic.EventSample.Goods.Gain;

import FrameWork.Event.Trigger;
import FrameWork.Model.Player;
import org.springframework.stereotype.Component;

//获取物品触发器
@Component
public class GainGoodTrigger extends Trigger<GainGoodHandler> {

    public void fire(Player player, int goodId, int count, GainSource source){
        for (GainGoodHandler handler:getEventHandlers()){
            handler.onGainGood(player, goodId, count, source);
        }
    }

}
